package singletonpattern;

/**
 * @description:
 * @author: Jerry
 * @date: 2021/9/16
 */
public class SingletonPatternDemo {

    public static void main(String[] args) {
        Singleton1 singleton1 = Singleton1.getInstance();
        singleton1.showMessage();
        Singleton2 singleton2 = Singleton2.getInstance();
        singleton2.showMessage();
    }
}
